All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class javax.media.j3d.ImageComponent

java.lang.Object
   |
   +----javax.media.j3d.SceneGraphObject
           |
           +----javax.media.j3d.NodeComponent
                   |
                   +----javax.media.j3d.ImageComponent

public abstract class ImageComponent
extends NodeComponent
Abstract class that is used to define 2D or 3D ImageComponent classes used in a Java 3D scene graph. This is used for texture images, background images and raster components of Shape3D nodes.


Variable Index

 o FORMAT_CHANNEL8
Specifies that each pixel contains 1 8-bit channel: it can be used for only luminance or only alpha or only intensity
 o FORMAT_LUM4_ALPHA4
Specifies that each pixel contains 2 4-bit channels:one each for luminance and alpha.
 o FORMAT_LUM8_ALPHA8
Specifies that each pixel contains 2 8-bit channels:one each for luminance and alpha
 o FORMAT_R3_G3_B2
Specifies that each pixel contains 2 3-bit channels:one each for red, green, and 1 2-bit channel for blue.
 o FORMAT_RGB
Specifies that each pixel contains 3 8-bit channels:one each for red, green, blue.
 o FORMAT_RGB4
Specifies that each pixel contains 3 4-bit channels:one each for red, green, blue.
 o FORMAT_RGB5
Specifies that each pixel contains 3 5-bit channels:one each for red, green, blue.
 o FORMAT_RGB5_A1
Specifies that each pixel contains 3 5-bit channels:one each for red, green, blue and 1 1-bit channel for alpha
 o FORMAT_RGB8
Specifies that each pixel contains 3 8-bit channels:one each for red, green, blue.
 o FORMAT_RGBA
Specifies that each pixel contains 4 8-bit channels:one each for red, green, blue, alpha.
 o FORMAT_RGBA4
Specifies that each pixel contains 4 4-bit channels:one each for red, green, blue, alpha.
 o FORMAT_RGBA8
Specifies that each pixel contains 4 8-bit channels:one each for red, green, blue, alpha.

Constructor Index

 o ImageComponent(int, int, int)
Constructs an image component object using the specified format, width, and height.

Method Index

 o getFormat()
Retrieves the format of this image component object.
 o getHeight()
Retrieves the height of this image component object.
 o getWidth()
Retrieves the width of this image component object.

Variables

 o FORMAT_RGB
 public static final int FORMAT_RGB
Specifies that each pixel contains 3 8-bit channels:one each for red, green, blue. Same as FORMAT_RGB_8;

 o FORMAT_RGBA
 public static final int FORMAT_RGBA
Specifies that each pixel contains 4 8-bit channels:one each for red, green, blue, alpha. Same as FORMAT_RGBA_8;

 o FORMAT_RGB8
 public static final int FORMAT_RGB8
Specifies that each pixel contains 3 8-bit channels:one each for red, green, blue. Same as FORMAT_RGB;

 o FORMAT_RGBA8
 public static final int FORMAT_RGBA8
Specifies that each pixel contains 4 8-bit channels:one each for red, green, blue, alpha. Same as FORMAT_RGBA;

 o FORMAT_RGB5
 public static final int FORMAT_RGB5
Specifies that each pixel contains 3 5-bit channels:one each for red, green, blue.

 o FORMAT_RGB5_A1
 public static final int FORMAT_RGB5_A1
Specifies that each pixel contains 3 5-bit channels:one each for red, green, blue and 1 1-bit channel for alpha

 o FORMAT_RGB4
 public static final int FORMAT_RGB4
Specifies that each pixel contains 3 4-bit channels:one each for red, green, blue.

 o FORMAT_RGBA4
 public static final int FORMAT_RGBA4
Specifies that each pixel contains 4 4-bit channels:one each for red, green, blue, alpha.

 o FORMAT_LUM4_ALPHA4
 public static final int FORMAT_LUM4_ALPHA4
Specifies that each pixel contains 2 4-bit channels:one each for luminance and alpha.

 o FORMAT_LUM8_ALPHA8
 public static final int FORMAT_LUM8_ALPHA8
Specifies that each pixel contains 2 8-bit channels:one each for luminance and alpha

 o FORMAT_R3_G3_B2
 public static final int FORMAT_R3_G3_B2
Specifies that each pixel contains 2 3-bit channels:one each for red, green, and 1 2-bit channel for blue.

 o FORMAT_CHANNEL8
 public static final int FORMAT_CHANNEL8
Specifies that each pixel contains 1 8-bit channel: it can be used for only luminance or only alpha or only intensity

Constructors

 o ImageComponent
 public ImageComponent(int format,
                       int width,
                       int height)
Constructs an image component object using the specified format, width, and height.

Parameters:
format - the image component format, one of: FORMAT_RGB, FORMAT_RGBA etc.
width - the number of columns of pixels in this image component object
height - the number of rows of pixels in this image component object
Throws: IllegalArgumentException
if format is invalid or width/height are non-positive.

Methods

 o getWidth
 public final int getWidth()
Retrieves the width of this image component object.

Returns:
the width of this image component object
 o getHeight
 public final int getHeight()
Retrieves the height of this image component object.

Returns:
the height of this image component object
 o getFormat
 public final int getFormat()
Retrieves the format of this image component object.

Returns:
the format of this image component object

All Packages  Class Hierarchy  This Package  Previous  Next  Index